﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CourseUtils;

namespace luckyTicket
{
    class Program
    {
        static void Main(string[] args)
        {
            IOHelpers.PrintString2Consol(chekTheTicket(),"your ticket is");
            Console.ReadKey();
        }

        static string chekTheTicket()
        {
            int intermediatearg1 = 0;
            int intermediatearg2 = 0;
            int[] mas = new int[6];
            for (int i = 0; i < 3; i++)
            {
                mas[i] = IOHelpers.ReadIntFromConsole("enter number of your ticket");
                intermediatearg1 += mas[i];
            }
            for (int i = 3; i < 6; i++)
            {
                mas[i] = IOHelpers.ReadIntFromConsole("enter number of your ticket");
                intermediatearg2 += mas[i];
            }
            if (intermediatearg1 == intermediatearg2)
                return (" lucky");
            else
                return (" not lucky");
        }
    }
}
